#include <stdio.h>
#include <stdlib.h>

#define N 5

int main(void)
{
    int a[N] = {1, 2, 3, 4, 5}, sum = 0, *p;

    for (p = &a[0]; p < a + N; p++)
    {
        sum += *p;
    }

    printf("result: %d\n", sum);
}
